/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SafeBox {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010020051';
    }

    get categoryName() {
        return '\u4fdd\u9669\u7bb1';
    }

    getStatus(params) {
        return command({
            method: 'getStatus',
            methodId: 'ppAXiVYw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getUnlockRecord(params) {
        return command({
            method: 'getUnlockRecord',
            methodId: 'pUPQO3NU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setUnlock(params) {
        return command({
            method: 'setUnlock',
            methodId: 'peHyqSgP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SafeBox;
